<!DOCTYPE html>
<html>
<head>
    <title></title>
<script src="js/form1.js"></script>
    <script>

        function getvalue()
        {
            var tempstr=" ";
            var selectpara=document.getElementById("zms");
            for(var i=0;i<selectpara.length;i++)
            {
                if (selectpara.options[i].selected)
                {
                    tempstr=tempstr+selectpara.options[i].text;

                }
            }
            alert(tempstr);
        }

    </script>
</head>
<body>

<select id="zms" multiple="true">
    <option value="zm">zmssss</option>
    <option value="im">ttt</option>
    <option value="sm">zmxxxssss</option>

</select>
<input type="button" value="tijiao" onclick="getvalue()">
</body>
</html>